﻿#region Usings

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

#endregion

namespace xConnected.Core.Model
{
    [Serializable]
    [DataContract]
    [DisplayColumn("Username")]
    public partial class User : PersistentEntity
    {
        public User()
        {
            IsActivated = false;
        }

        [DataMember]
        public string Email { get; set; }

        [DataMember]
        public string Username { get; set; }

        [DataMember]
        public string Password { get; set; }

        [DataMember]
        public Guid ActivationKey { get; set; }

        [DataMember]
        public bool IsActivated { get; set; }

        [DataMember]
        public short AccountType { get; set; }

        [DataMember]
        public virtual IList<ExpertProfile> ExpertProfiles { get; set; }

        [DataMember]
        public virtual IList<CompanyProfile> CompanyProfiles { get; set; }

        [DataMember]
        public virtual IList<MessageFolder> MessageFolders { get; set; }

        [DataMember]
        public virtual IList<ExpertList> ExpertLists { get; set; }

        [DataMember]
        public virtual IList<CompanyList> CompanyLists { get; set; }

        [DataMember]
        public virtual IList<PositionList> PositionLists { get; set; }
    }
}